<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript" src="vue.js"></script>
</head>
<body>

    <!-- 准备好一个容器 -->
        <div id="root">
            <h2 v-show="true">欢迎来到{{name}}</h2>
            <h2 v-if="true">欢迎来到{{name}}</h2>
        </div>

        <script type="text/javascript">

              Vue.config.productionTip = false
              
              new Vue({
                el:'#root',
                data:{
                    name:'尚硅谷'
                }
              });  

        </script>
</body>
</html>